import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:layout-dashboard',
      // order: -1,
      title: $t('page.sys.sys'),
    },
    name: 'object',
    path: '/object',
    children: [

      {
        name: 'LuYou',
        path: '/LuYou',
        component: () => import('#/views/object/router.vue'),
        meta: {
          icon: '',
          title: $t('page.sys.sysRouter'),
        },
      },
      {
        name: 'sysUser',
        path: '/sysUser',
        component: () => import('#/views/object/user.vue'),
        meta: {
          icon: '',
          title: $t('page.sys.sysUser'),
        },
      },
      {
        name: 'sysRole',
        path: '/sysRole',
        component: () => import('#/views/object/role.vue'),
        meta: {
          icon: '',
          title: $t('page.sys.sysRole'),
        },
      },
      {
        name: 'onlinelisting',
        path: '/onlinelisting',
        component: () => import('#/views/object/tonlinelisting.vue'),
        meta: {
          icon: '',
          title: $t('page.sys.onlineListing'),
        },
      },

      {
        name: 'table',
        path: '/table',
        component: () => import('#/views/object/table.vue'),
        meta: {
          icon: '',
          title: $t('page.sys.codeGeneration'),
        },
      },
      {
        name: 'log',
        path: '/log',
        component: () => import('#/views/object/tLog.vue'),
        meta: {
          icon: '',
          title: $t('page.sys.log'),
        },
      },
      {
        name: 'deom-edit',
        path: '/deom-edit',
        component: () => import('#/views/object/deom-edit.vue'),
        meta: {
          // affixTab: true,
          icon: '',
          title: $t('page.sys.deomEdit'),
        },
      }
,
      {
        name: 'chatMessag',
        path: '/chatMessag',
        component: () => import('#/views/object/chat-messag.vue'),
        meta: {
          icon: '',
          title: $t('page.sys.chatMessag'),
        },
      },
        {
        name: 'modes',
        path: '/modes',
        component: () => import('#/views/object/tModel.vue'),
        meta: {
          icon: '',
          title: $t('page.sys.modes'),
        },
      },
        {
        name: 'modelConfig',
        path: '/modelConfig',
        component: () => import('#/views/object/tModelConfig.vue'),
        meta: {
          icon: '',
          title: $t('page.sys.modelConfig'),
        },
      }

    ],
  },
];

export default routes;
